package com.example.hand.springboot_demo.api.controller.user;

import com.example.hand.springboot_demo.app.service.UnionUserRoleService;
import com.mysql.cj.xdevapi.JsonString;
import domain.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user-role")
public class UnionUserRoleController {

    @Autowired
    UnionUserRoleService unionUserRoleService;

    @RequestMapping("/union-select")
    public List<User> selectUserRole(@RequestBody User user){


        return unionUserRoleService.unionUserRoleSelect(user);
    }


}
